package com.maddox.mworld.api;

import com.maddox.mworld.entity.PictureParent;
import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ApiService {
    //
    public static final String BASE_URL="https://pixabay.com/api/?key=16334831-50dcc8a319e3f075cd83dd360&q=yellow+flowers&image_type=photo";

    @GET(BASE_URL)
    public Observable<PictureParent> getPictures(@Query("page")int page);

}
